446e63dd6f5b879e638ad3774bd1b0929e6e937d,java/src/kanzi/util/color/YCbCrColorModelConverter.java,YCbCrColorModelConverter,convertRGBtoYUV420,#number[]#number[]#number[]#number[]#,650

Before Change


    {
        if (this.downSampler != null)
        {
           this.convertRGBtoYUV444(rgb, y, u, v);
           this.convertYUV444toYUV420(y, u, v);
           return true;
        }

After Change



    // In YUV420 format the U and V color components are subsampled 1:2 horizontally
    // and 1:2 vertically
    private boolean convertRGBtoYUV420(int[] rgb, int[] y, int[] u, int[] v)
    {
        if (this.downSampler != null)
        {
           // Requires u & v of same size as y
           boolean res = this.convertRGBtoYUV444(rgb, y, u, v);
           this.downSampler.subSample(u, u);
           this.downSampler.subSample(v, v);
           return res;
        }

        int startLine = 0;